#pragma once
#include <osgGA/GUIEventHandler>
#include <osg/Switch>
#include <osg/MatrixTransform>
#include <btBulletDynamicsCommon.h>

#include <BulletDynamics\Character\btKinematicCharacterController.h>
#include <BulletCollision\CollisionDispatch\btGhostObject.h>


#include "createMan.h"
class createMan;
class motionControl :
	public osgGA::GUIEventHandler
{
public:
	motionControl(btDynamicsWorld* dynamicsWorld, createMan* man);
	
	virtual bool handle(const osgGA::GUIEventAdapter& ea,
		osgGA::GUIActionAdapter& aa);

private:
	btDynamicsWorld* _dynamicsWorld;
	createMan* _man;
	btTransform _tr;
	btVector3 _origin;
	btQuaternion _rotation;
};